//
//  MemberModel.m
//  HAODE
//
//  Created by panquanReabam.com on 16/5/9.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import "MemberListModel.h"

@implementation MemberListModel

+(instancetype)dataModelWithDict:(NSDictionary *)dict
{
    MemberListModel *dataModel=[[self alloc] init];
    dataModel.createDate=dict[@"createDate"];
    dataModel.address=dict[@"address"];
    dataModel.memberId=dict[@"memberId"];
    
    dataModel.gradeName=dict[@"gradeName"];
    dataModel.phone=[Global getJudgeTheErrorStr:dict[@"phone"]];
    dataModel.sex=dict[@"sex"];
    dataModel.grade=dict[@"grade"];
    dataModel.userName=dict[@"userName"];
    dataModel.integral=dict[@"integral"];
    dataModel.source=dict[@"userName"];
    dataModel.consigneeAddr=dict[@"consigneeAddr"];
    dataModel.consigneeName=dict[@"consigneeName"];
    dataModel.consigneePhone=dict[@"consigneePhone"];
    dataModel.headImage=dict[@"headImage"];
    dataModel.tags=dict[@"tags"];
    return dataModel;
}
+(instancetype)dataModelWithUserDict:(NSDictionary *)dict{

MemberListModel *dataModel=[[self alloc] init];
dataModel.userDict=dict;
  
return dataModel;

}
+(instancetype)ScreeningDataModelWithDict:(NSDictionary *)dict{


    MemberListModel *dataModels=[[self alloc] init];
    dataModels.typeName=dict[@"typeName"];
    dataModels.typeCode=dict[@"typeCode"];
    dataModels.items=dict[@"items"];
    dataModels.isSingle=dict[@"isSingle"];
    dataModels.dataType=dict[@"dataType"];
    dataModels.current=dict[@"current"];
    dataModels.itemName=dict[@"itemName"];
    dataModels.congzhicurrent=dict[@"current"];
//    dataModel.itemValue=dict[@"items"][@"itemValue"];
//    dataModel.itemName=dict[@"items"][@"itemName"];

    return dataModels;


}
@end
